<?php

namespace App\Model\Dao;

use \Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="article")
 */
class Article extends \Kdyby\Doctrine\Entities\BaseEntity{

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="User")
     * @ORM\JoinColumn(name="userid", referencedColumnName="id")
     */
    private $user;
    
   /**
     * @ORM\Column(type="string", length=255)
     */
    private $title;
    
   /**
     * @ORM\Column(type="string", length=255)
     */
    private $link;
    
   /**
     * @ORM\Column(type="string", length=255)
     */
    private $description;
    
   /**
     * @ORM\Column(type="string", length=255)
     */
    private $keywords;
    
    /**
     * @ORM\Column(type="text")
     */
    private $content;
    
    /**
     * @ORM\Column(type="integer")
     */
    private $active;
    
    /**
     * @ORM\Column(type="datetimetz")
     */
    private $created;
    
    public function getId() {
      return $this->id;
    }

    public function getUser() {
      return $this->user;
    }

    public function getTitle() {
      return $this->title;
    }

    public function getLink() {
      return $this->link;
    }

    public function getDescription() {
      return $this->description;
    }

    public function getKeywords() {
      return $this->keywords;
    }

    public function getContent() {
      return $this->content;
    }

    public function setId($id) {
      $this->id = $id;
    }

    public function setUser($user) {
      $this->user = $user;
    }

    public function setTitle($title) {
      $this->title = $title;
    }

    public function setLink($link) {
      $this->link = $link;
    }

    public function setDescription($description) {
      $this->description = $description;
    }

    public function setKeywords($keywords) {
      $this->keywords = $keywords;
    }

    public function setContent($content) {
      $this->content = $content;
    }

    public function getActive() {
      return $this->active;
    }

    public function getCreated() {
      return $this->created;
    }

    public function setActive($active) {
      $this->active = $active;
    }

    public function setCreated($created) {
      $this->created = $created;
    }


}

